//
// Created by yan on 7/8/17.
//

#ifndef SERIALMOD_SERIALMOD_H
#define SERIALMOD_SERIALMOD_H

#include <iostream>
#include "daqsys/bDaqMod.h"


//采集模块数据配置类
class Daqcfg : public bSysNode{
public:
    Daqcfg(std::string name) : bSysNode(name){}
    virtual void * getIstance(){ return this;}
    int getbaud(){return 1000;}
};

class serialMod : public bDaqMod{
public:
    serialMod(std::string name) : bDaqMod(name) {}

    virtual ssize_t recvData(void* buf,size_t count);

    virtual ssize_t sendData(void* buf,size_t count);

    virtual int setMode(void * mode);
};


#endif //SERIALMOD_SERIALMOD_H
